package yxy.cherry.battle.module.affix.buff;

import yxy.cherry.battle.Battle;
import yxy.cherry.battle.Fighter;
import yxy.cherry.battle.module.affix.AffixFactory.BuffTypeEnum;
import yxy.cherry.battle.module.affix.Buff;
import yxy.cherry.battle.module.affix.BuffType;
import yxy.cherry.data.bean.skill;

/** 麻痹 */
@BuffType(Type = BuffTypeEnum.麻痹)
public class Affix_55_麻痹 extends Buff {
	// 跳过普攻

	public Affix_55_麻痹(Fighter source, Fighter target, skill skilldata, int[] params) {
		super(source, target, skilldata, params);
	}

	@Override
	public boolean exec(Fighter source, Fighter actor) {
		getAffixContext().set跳过普通技能(true);
		Battle.battleLogger(6,"麻痹"+source.getName()+"跳过普通技能");
		return true;
	}

	@Override
	public BuffType getBuffType() {
		return BuffType.控制效果;
	}

	@Override
	public BuffStateType getBuffStateType() {
		return BuffStateType.麻痹状态;
	}
}